public class ctrlCalculator
{
    public Integer OneThousand {get;set;}
    public Integer FiveHundered {get;set;}
    public Integer TwoHundered {get;set;}
    public Integer OneHundered {get;set;}
    public Integer Fifty {get;set;}
    public Integer Twenty {get;set;}
    public Integer Ten {get;set;}
    public Integer Five {get;set;}
    public Integer One {get;set;}
    
    public Integer Total {get;set;}
    
    public void calculate()
    {
        Total = ((OneThousand*1000) + (FiveHundered*500) + (TwoHundered*200) + (OneHundered*100) + (Fifty*50) + (Twenty*20) + (Ten*10) + (Five*5) + One);
    }
}